<?php

namespace Respect\Http\Module\Auth;

use Respect\Http\Module\Auth as HttpModuleAuth;

class Basic extends HttpModuleAuth
{

    public $type = 'Basic';
    public $user;
    public $pass;

    protected function parseHeader($authHeader)
    {
        list($this->user, $this->pass) = explode(
                ':',
                base64_decode($authHeader)
        );
    }

}
